package msl.ConAR;

import msl.ConAR.*;
import msl.ConAR.R.*;


import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class ConARTab extends TabActivity{
	TabHost mTab;
	
	public void onCreate(Bundle savedInstanceState){
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.conartab);
		TabHost mTab=getTabHost();		
				
		//LayoutInflater inflater=LayoutInflater.from(this);
		//inflater.inflate(R.layout.conartab, mTab.getTabContentView(), true);
		
		Intent mSearchIntent= new Intent().setClass(ConARTab.this, SearchTab.class);
		Intent mMapIntent= new Intent().setClass(ConARTab.this, MapTab.class);
		Intent mPlaceIntent= new Intent().setClass(ConARTab.this, PlaceTab.class);
		Intent mCoworkerIntent= new Intent().setClass(ConARTab.this, CoworkerTab.class);
		Intent mProfileIntent= new Intent().setClass(ConARTab.this, ProfileTab.class);
		
		mTab.addTab(mTab.newTabSpec("tag")
				.setIndicator("Search")
				.setContent(mSearchIntent));
		
		mTab.addTab(mTab.newTabSpec("tag")
				.setIndicator("Map")
				.setContent(mMapIntent));
		
		mTab.addTab(mTab.newTabSpec("tag")
				.setIndicator("Place")
				.setContent(mPlaceIntent));
		
		mTab.addTab(mTab.newTabSpec("tag")
				.setIndicator("Coworker")
				.setContent(mCoworkerIntent));
		
		mTab.addTab(mTab.newTabSpec("tag")
				.setIndicator("Profile")
				.setContent(mProfileIntent));
		
	}

}
